#include <iostream>
#include <string>
#include <vector>

using namespace std;


int main (void) {
	
	vector<string> vec;

	vec.push_back("helloqqq");

	vec.push_back("wo");

	char buf[100] = "nihaoshijie";
	string str(buf);

	string* a = &vec[0];
	string* b = &vec[1];
	
	*a = str.substr(0, 5);
	*b = str.substr(5, 3);
	
	cout << *a << " " << *b << " " << endl;
	return 0;
}
